/**
 * DFCM数据库专用样式
 */

/* 表格列表容器 */
.content-body {
    display: flex;
    height: calc(100vh - 170px);
    width: 100%;
}

.table-list-container {
    width: 280px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 0;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.table-data-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff;
}

/* 分组样式 */
.table-group {
    margin-bottom: 5px;
}

.table-group-header {
    padding: 10px 15px;
    background-color: #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #dee2e6;
}

.table-group-header:hover {
    background-color: #dde1e6;
}

.table-group-header.active {
    background-color: #d1d7dd;
}

.table-group-header i {
    margin-right: 8px;
    color: #6c757d;
}

.table-group-header i.fa-angle-down {
    margin-left: auto;
    transition: transform 0.3s;
}

.table-group-header.active i.fa-angle-down {
    transform: rotate(180deg);
}

.table-group-content {
    display: none;
}

/* 表格列表 */
.table-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-item {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.table-item a {
    display: flex;
    padding: 8px 15px 8px 32px;
    color: #495057;
    text-decoration: none;
    align-items: center;
    transition: background-color 0.2s;
}

.table-item a:hover {
    background-color: #e9ecef;
}

.table-item.active a {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

.table-item i {
    margin-right: 8px;
    color: #6c757d;
}

.table-item.active i {
    color: #0d6efd;
}

/* 表格数据区 */
.empty-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.empty-selection i {
    margin-bottom: 15px;
    opacity: 0.5;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #343a40;
}

.table-actions {
    display: flex;
    align-items: center;
}

.table-info {
    display: flex;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.table-info span {
    margin-right: 20px;
    color: #6c757d;
}

.table-info strong {
    color: #343a40;
}

/* 数据表格 */
.data-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    cursor: pointer;
    white-space: nowrap;
}

.data-table th:hover {
    background-color: #e9ecef;
}

.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #dee2e6;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    padding: 5px 10px;
    margin: 0 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pagination button:hover:not([disabled]) {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.pagination span {
    padding: 0 10px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.search-box input {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 200px;
}

.search-box button {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-left: none;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #e9ecef;
}

.refresh-btn {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.refresh-btn:hover {
    background-color: #e9ecef;
}

/* 加载中和错误提示 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6c757d;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #dc3545;
} 